package com.tinycloud.miracll.product.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tinycloud.common.core.annotation.Excel;
import com.tinycloud.common.core.web.domain.BaseEntity;

/**
 * 重控工艺报警对象 product_keyprocess_alarm
 * 
 * @author tiny
 * @date 2022-01-17
 */
public class ProductKeyProcessAlarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date alarmTime;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNum;

    /** scada报警主键 */
    @Excel(name = "scada报警主键")
    private String scadaalarmid;

    /** 重控点位描述 */
    @Excel(name = "重控点位描述")
    private String issuePointDesc;

    /** 报警描述 */
    @Excel(name = "报警描述")
    private String alarmDesc;

    /** 报警类型
     * 1--偏差高
     * 2--偏差低
     * 3--高
     * 4--低
     * 5-数字
     * 6--变化率
     * */
    @Excel(name = "报警类型")
    private String alarmType;


    @Excel(name = "erp报警类型")
    private String erpAlarmType;

    /** 测量值 */
    @Excel(name = "测量值")
    private BigDecimal measureValue;

    /** 下发值 */
    @Excel(name = "下发值")
    private BigDecimal issueValue;

    /** 计算值 */
    @Excel(name = "计算值")
    private BigDecimal calculateValue;

    /** 下发点位 */
    @Excel(name = "下发点位")
    private String issuePoint;

    /** 测量点位 */
    @Excel(name = "测量点位")
    private String measurePoint;

    /** 下一秒计算值 */
    @Excel(name = "下一秒计算值")
    private BigDecimal calculateValueNext;

    /** 报警点位 */
    @Excel(name = "报警点位")
    private String alarmPoint;

    /** 计算点位 */
    @Excel(name = "计算点位")
    private String calculatePoint;

    /** 推送erp时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "推送erp时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date erpPushTime;

    /** erp分析时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "erp分析时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date erpAnalTime;

    /** 报警是否有效   0--无效  1--有效 */
    @Excel(name = "报警是否有效   0--无效  1--有效")
    private Integer validFlag;

    /** 0--未同步erp   1-已同步erp */
    @Excel(name = "0--未同步erp   1-已同步erp")
    private Integer erpPushFlag;

    /** 0--erp未分析     1-erp已分析 */
    @Excel(name = "0--erp未分析     1-erp已分析")
    private Integer erpAnalFlag;

    /** 报警值 */
    @Excel(name = "报警值")
    private BigDecimal alarmValue;

    /** 限定值 */
    @Excel(name = "限定值")
    private BigDecimal alarmLimit;

    /** 产线 */
    @Excel(name = "产线")
    private String lineCode;

    /** 自定义报警描述 */
    @Excel(name = "自定义报警描述")
    private String alarmDescCus;

    /** 设定值--通过上下限及偏差计算设定值 */
    @Excel(name = "设定值--通过上下限及偏差计算设定值")
    private BigDecimal issueValueCus;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setAlarmTime(Date alarmTime) 
    {
        this.alarmTime = alarmTime;
    }

    public Date getAlarmTime() 
    {
        return alarmTime;
    }
    public void setBatchNum(String batchNum) 
    {
        this.batchNum = batchNum;
    }

    public String getBatchNum() 
    {
        return batchNum;
    }
    public void setScadaalarmid(String scadaalarmid) 
    {
        this.scadaalarmid = scadaalarmid;
    }

    public String getScadaalarmid() 
    {
        return scadaalarmid;
    }
    public void setIssuePointDesc(String issuePointDesc) 
    {
        this.issuePointDesc = issuePointDesc;
    }

    public String getIssuePointDesc() 
    {
        return issuePointDesc;
    }
    public void setAlarmDesc(String alarmDesc) 
    {
        this.alarmDesc = alarmDesc;
    }

    public String getAlarmDesc() 
    {
        return alarmDesc;
    }
    public void setAlarmType(String alarmType) 
    {
        this.alarmType = alarmType;
    }

    public String getAlarmType() 
    {
        return alarmType;
    }
    public void setMeasureValue(BigDecimal measureValue) 
    {
        this.measureValue = measureValue;
    }

    public BigDecimal getMeasureValue() 
    {
        return measureValue;
    }
    public void setIssueValue(BigDecimal issueValue) 
    {
        this.issueValue = issueValue;
    }

    public BigDecimal getIssueValue() 
    {
        return issueValue;
    }
    public void setCalculateValue(BigDecimal calculateValue) 
    {
        this.calculateValue = calculateValue;
    }

    public BigDecimal getCalculateValue() 
    {
        return calculateValue;
    }
    public void setIssuePoint(String issuePoint) 
    {
        this.issuePoint = issuePoint;
    }

    public String getIssuePoint() 
    {
        return issuePoint;
    }
    public void setMeasurePoint(String measurePoint) 
    {
        this.measurePoint = measurePoint;
    }

    public String getMeasurePoint() 
    {
        return measurePoint;
    }
    public void setCalculateValueNext(BigDecimal calculateValueNext) 
    {
        this.calculateValueNext = calculateValueNext;
    }

    public BigDecimal getCalculateValueNext() 
    {
        return calculateValueNext;
    }
    public void setAlarmPoint(String alarmPoint) 
    {
        this.alarmPoint = alarmPoint;
    }

    public String getAlarmPoint() 
    {
        return alarmPoint;
    }
    public void setCalculatePoint(String calculatePoint) 
    {
        this.calculatePoint = calculatePoint;
    }

    public String getCalculatePoint() 
    {
        return calculatePoint;
    }
    public void setErpPushTime(Date erpPushTime) 
    {
        this.erpPushTime = erpPushTime;
    }

    public Date getErpPushTime() 
    {
        return erpPushTime;
    }
    public void setErpAnalTime(Date erpAnalTime) 
    {
        this.erpAnalTime = erpAnalTime;
    }

    public Date getErpAnalTime() 
    {
        return erpAnalTime;
    }
    public void setValidFlag(Integer validFlag) 
    {
        this.validFlag = validFlag;
    }

    public Integer getValidFlag() 
    {
        return validFlag;
    }
    public void setErpPushFlag(Integer erpPushFlag) 
    {
        this.erpPushFlag = erpPushFlag;
    }

    public Integer getErpPushFlag() 
    {
        return erpPushFlag;
    }
    public void setErpAnalFlag(Integer erpAnalFlag) 
    {
        this.erpAnalFlag = erpAnalFlag;
    }

    public Integer getErpAnalFlag() 
    {
        return erpAnalFlag;
    }
    public void setAlarmValue(BigDecimal alarmValue) 
    {
        this.alarmValue = alarmValue;
    }

    public BigDecimal getAlarmValue() 
    {
        return alarmValue;
    }
    public void setAlarmLimit(BigDecimal alarmLimit) 
    {
        this.alarmLimit = alarmLimit;
    }

    public BigDecimal getAlarmLimit() 
    {
        return alarmLimit;
    }
    public void setLineCode(String lineCode) 
    {
        this.lineCode = lineCode;
    }

    public String getLineCode() 
    {
        return lineCode;
    }
    public void setAlarmDescCus(String alarmDescCus) 
    {
        this.alarmDescCus = alarmDescCus;
    }

    public String getAlarmDescCus() 
    {
        return alarmDescCus;
    }
    public void setIssueValueCus(BigDecimal issueValueCus) 
    {
        this.issueValueCus = issueValueCus;
    }

    public BigDecimal getIssueValueCus() 
    {
        return issueValueCus;
    }


    public String getErpAlarmType() {
        return erpAlarmType;
    }

    public void setErpAlarmType(String erpAlarmType) {
        this.erpAlarmType = erpAlarmType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("alarmTime", getAlarmTime())
            .append("batchNum", getBatchNum())
            .append("scadaalarmid", getScadaalarmid())
            .append("issuePointDesc", getIssuePointDesc())
            .append("alarmDesc", getAlarmDesc())
            .append("alarmType", getAlarmType())
            .append("erpAlarmType", getErpAlarmType())
            .append("measureValue", getMeasureValue())
            .append("issueValue", getIssueValue())
            .append("calculateValue", getCalculateValue())
            .append("issuePoint", getIssuePoint())
            .append("measurePoint", getMeasurePoint())
            .append("calculateValueNext", getCalculateValueNext())
            .append("alarmPoint", getAlarmPoint())
            .append("calculatePoint", getCalculatePoint())
            .append("createTime", getCreateTime())
            .append("erpPushTime", getErpPushTime())
            .append("erpAnalTime", getErpAnalTime())
            .append("validFlag", getValidFlag())
            .append("erpPushFlag", getErpPushFlag())
            .append("erpAnalFlag", getErpAnalFlag())
            .append("alarmValue", getAlarmValue())
            .append("alarmLimit", getAlarmLimit())
            .append("lineCode", getLineCode())
            .append("alarmDescCus", getAlarmDescCus())
            .append("issueValueCus", getIssueValueCus())
            .toString();
    }
}
